package frame.factory;

import com.alibaba.druid.pool.DruidDataSource;
import frame.userlogin.LoginFrame;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 王迎澳
 * @version 1.0
 * @school hhu
 * @date 2022/6/21 13:34
 */
@Component
public class FrameFactory {

    @Autowired
    DruidDataSource dataSource;

    public LoginFrame getLoginFrame() {
        return new LoginFrame(dataSource);
    }

}
